package cn.hsa.fqz.task.service;

import cn.hsa.fqz.task.entity.TTaskMedcClueDO;
import cn.hsa.fqz.task.service.dto.ApplyReauditDTO;
import cn.hsa.fqz.task.service.dto.DealResultDTO;
import cn.hsa.hsaf.core.framework.util.CurrentUser;
import cn.hsa.hsaf.core.framework.util.PageResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 */
public interface TTaskMedcClueService extends IService<TTaskMedcClueDO> {

    /**
     * 根据task查询医药机构线索
     * @param taskId
     * @return
     */
    PageResult<TTaskMedcClueDO> findListByTaskId(Integer pageNum, Integer pageSize, Integer taskId);

    /**
     * 确认处理类型
     * @param sequenceNo
     * @param dealType
     * @return
     */
    Boolean confirmDealType(String sequenceNo, Integer dealType);

    /**
     * 申请办结
     * @param dto
     * @return
     */
    Boolean applyDealComplt(DealResultDTO dto, CurrentUser currentUser);

    /**
     * 确认办结
     * @param sequenceNo
     * @param currentUser
     * @return
     */
    Boolean confirmDealComplt(String sequenceNo, CurrentUser currentUser);

    /**
     * 驳回申请
     * @param dto
     * @param currentUser
     * @return
     */
    Boolean applyReaudit(ApplyReauditDTO dto, CurrentUser currentUser);
}
